﻿using LiteBlog.Controllers.Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;

namespace LiteBlog.Controllers.Helpers
{
    public class AuthenticationHelper : IAuthenticationHelper
    {
        public string DefaultUrl
        {
            get
            {
                return FormsAuthentication.DefaultUrl;
            }
            set
            {
                
            }
        }

        public void SignIn(string name)
        {
            FormsAuthentication.SetAuthCookie(name, false);
        }

        public void SignOut()
        {
            FormsAuthentication.SignOut();
        }
    }
}
